package com.byf.search.feign;

import com.byf.common.core.constant.ServiceNameConstants;
import com.byf.common.core.domain.Result;
import com.byf.search.common.domain.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "byf-search", contextId = "searchFeignService", value = ServiceNameConstants.SEARCH_SERVICE)
public interface SearchFeignService {

    @PostMapping("/es/save")
    public Result productStatusUp(@RequestBody String skuEsModelList);

}
